#!python
#
#  Build for the little cpp test code
#
import SConsAddons.Util       # Get the utils
import os
pj = os.path.join

# Directory path information
full_src_path = SConsAddons.Util.getFullSrcPath()

Import('*')

env = build_env.Copy()
opensg_options.apply(env, ['system'])    # Get all the options for system lib

env.Append(CPPPATH = [full_src_path, 
                      pj(opensg_options.baseDir,'include','OpenSG')])

# Assume 1 file per test app
test_app_srcs = Split("""
         testFieldContainer.cpp  
         testFieldContainerWrite.cpp
         testnodefield.cpp
         testNodes.cpp
         testOsgFieldContainers.cpp
""")

for src_file in test_app_srcs:
   env.Program(source = src_file)

# Apps with embedded python
py_app_env = build_env.Copy()
py_app_env.Append(CPPPATH = ['.',])
boost_options.updatePythonEmbeddedEnv(py_app_env)

py_app_env.Program('load_osg_module', 'load_osg_module.cpp')

